<div id="qlhdon">
	<div id="tieude_qlhdon">
    <img src="<?php echo base_url();?>image/admin/bill_of_document.png" width="35px" height="35px"><label>QUẢN LÝ HÓA ĐƠN</label>
    </div>
    <div id="noidung_qlhdon">
    	<a href="<?php echo base_url();?>index.php/admin/admin/laphoadon">Lập hóa đơn</a>
        </div id="phanhoi">
        <h3>DANH SÁCH KHÁCH HÀNG</h3>
        <table  align='left' border='1' bordercolor="#00FF00" id='table_ds'>
        	<tr  bgcolor="#3399CC" >
            	<td>STT</td>
                <td>Họ tên</td>
                <td>Ngày sinh</td>
                <td>Giới tính</td>
                <td>Địa chỉ</td>
                <td>Email</td>
                <td>Số điện thoại</td>
                <td>Số CMND</td>
                <td>Lập hóa đơn</td>
            </tr>
             <?php 
				$i=0;
				foreach($item as $items){ 
				if($items!=null)
					{
					$i++;
					echo "<tr>";
			?>
            	<th><?php echo $i ?></th>
                <th><?php echo $items['ho_ten'] ?></th>
                <th><?php echo date("j/m/Y",strtotime( $items['ngay_sinh'])) ?></th>
                <th><?php echo $gioitinh ?></th>
                <th><?php echo $items['dia_chi'] ?></th>
               
               	<th><?php echo $items['email'] ?></th>
                <th><?php echo $items['sdt'] ?></th>
                <th><?php echo $items['cmnd'] ?></th>
                <th><a href="<?php echo base_url()."index.php/admin/admin/suakhuyenmai/".$items['ten_tk'];?>" > <img src="<?php echo base_url();?>image/admin/book_edit.png" /> </a></th>
            <?php 
			
				echo "</tr>";
			}}?>
        </table>
        	
            
        
    </div>
</div>